home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / MultiSrc.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  134 lines

  1. /* $Xorg: MultiSrc.h,v 1.4 2001/02/09 02:03:44 xorgcvs Exp $ */
  2.  
  3. /*
  4.  * Copyright 1991 by OMRON Corporation
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name OMRON not be used in
  11.  * advertising or publicity pertaining to distribution of the software without
  12.  * specific, written prior permission.  OMRON makes no representations
  13.  * about the suitability of this software for any purpose.  It is provided
  14.  * "as is" without express or implied warranty.
  15.  *
  16.  * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  17.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  18.  * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  20.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  21.  * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  22.  * PERFORMANCE OF THIS SOFTWARE.
  23.  *
  24.  *      Author: Li Yuhong     OMRON Corporation
  25.  */
  26.  
  27. /*
  28.  
  29. Copyright 1989, 1991, 1994, 1998  The Open Group
  30.  
  31. Permission to use, copy, modify, distribute, and sell this software and its
  32. documentation for any purpose is hereby granted without fee, provided that
  33. the above copyright notice appear in all copies and that both that
  34. copyright notice and this permission notice appear in supporting
  35. documentation.
  36.  
  37. The above copyright notice and this permission notice shall be included in
  38. all copies or substantial portions of the Software.
  39.  
  40. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  41. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  42. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  43. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  44. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  45. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  46.  
  47. Except as contained in this notice, the name of The Open Group shall not be
  48. used in advertising or otherwise to promote the sale, use or other dealings
  49. in this Software without prior written authorization from The Open Group.
  50.  
  51. */
  52. /* $XFree86: xc/lib/Xaw/MultiSrc.h,v 1.6 2001/01/17 19:42:28 dawes Exp $ */
  53.  
  54. /*
  55.  * This file was modified from AsciiSrc.h.
  56.  *
  57.  * By Li Yuhong, Sept. 18, 1990
  58.  */
  59.  
  60. #ifndef _XawMultiSrc_h
  61. #define _XawMultiSrc_h
  62.  
  63. #include <X11/Xaw/TextSrc.h>
  64.  
  65. /* Resources:
  66.  
  67.  Name             Class        RepType        Default Value
  68.  ----             -----        -------        -------------
  69.  dataCompression     DataCompression    Boolean        True
  70.  length             Length        int        (internal)
  71.  pieceSize         PieceSize        int        BUFSIZ
  72.  string             String        String        NULL
  73.  type             Type        XawAsciiType    XawAsciiString
  74.  useStringInPlace    UseStringInPlace    Boolean        False
  75.  
  76. */
  77.  
  78. extern WidgetClass multiSrcObjectClass;
  79.  
  80. typedef struct _MultiSrcClassRec *MultiSrcObjectClass;
  81. typedef struct _MultiSrcRec      *MultiSrcObject;
  82.  
  83. #define MultiSourceObjectClass MultiSrcObjectClass
  84. #define MultiSourceObject      MultiSrcObject
  85.  
  86. #define XtCDataCompression "DataCompression"
  87. #define XtCPieceSize "PieceSize"
  88. #define XtCType "Type"
  89. #define XtCUseStringInPlace "UseStringInPlace"
  90.  
  91. #define XtNdataCompression "dataCompression"
  92. #define XtNpieceSize "pieceSize"
  93. #define XtNtype "type"
  94. #define XtNuseStringInPlace "useStringInPlace"
  95.  
  96. #define XtRMultiType "MultiType"
  97.  
  98. #define XtEstring "string"
  99. #define XtEfile "file"
  100.  
  101. /************************************************************
  102.  *
  103.  * THESE ROUTINES ARE NOT PUBLIC: Source should call
  104.  *
  105.  * the AsciiSrc API which currently forwards requests here.
  106.  *
  107.  * future versions (like theres going to be an R7 Xaw!) may
  108.  *
  109.  * eliminate this file or at least these functions entirely.
  110.  *
  111.  ************************************************************/
  112.  
  113. _XFUNCPROTOBEGIN
  114.  
  115. void XawMultiSourceFreeString
  116. (
  117.  Widget            w
  118.  );
  119.  
  120. Bool _XawMultiSave
  121. (
  122.  Widget            w
  123. );
  124.  
  125. Bool _XawMultiSaveAsFile
  126. (
  127.  Widget            w,
  128.  _Xconst char        *name
  129.  );
  130.  
  131. _XFUNCPROTOEND
  132.  
  133. #endif /* _XawMultiSrc_h  */
  134.